home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 23
/
AMIGAplus Sonderheft 23 (2000)(Falke)(DE)[!].iso
/
Updates
/
Datatypes
/
ilbmdt44
/
ilbmdt44.doc
< prev
Wrap
Text File
|
1999-11-12
|
8KB
|
179 lines
ilbm.datatype v44
© 1997-1999 by Stephan Rupprecht
All rights reserved.
COPYRIGHT AND DISCLAIMER
ilbm.datatype v44 is copyrighted 1997-99 by Stephan Rupprecht.
All rights reserved. This program is freeware, so no financial
donations required. Redistribution allowed if the package is
left unchanged. The author is not responsible for any damage
caused by the use or misuse of this documentation and/or the
program(s) it describes.
PlanarToChunky routine © by Morten Eriksen.
All mentioned trademarks are subject to their respective owners.
REQUIREMENTS
- Any Amiga® (compatible) computer with at least OS3.0.
- 68020+ cpu
- any picture.datatype (v43 recommend, p96 version works
without gfxboard)
DESCRIPTION
ilbm.datatype v44 is a replacement for the original ilbmdt and allows
you to display ham and ehb pictures on a non-native (eg. p96/cgfx)
screen in correct colors. Even if you don't have a gfx-board you'll
be able to view 24bit iff images and ham8 images on ocs/ecs.
NOTE: Although this datatype has the version number 44, it is not the
one that comes with os3.5!
INSTALLATION
Just 'Copy ilbm.datatype TO SYS:classes/datatypes/'.
USAGE
There's no difference in using my ilbmdt and the original one. The
datatype automatically adapts itself to the underlying picture datatype.
You can configure the datatype by placing desired options in an environment
variable called 'datatypes/ilbmdt44.prefs'. Please use SetEnv (global)
or Set (local) to create the variable. To make the changes permanent, you
have to copy the variable from env to envarc.
The preferences template is:
V42MODE/S,OLDDEC/T,CHIPBM/T
V42MODE: switches the decoder into the v42 compatible mode even when
pictdt v43 is installed. You should switch on this option if you don't have
a gfx-board but pictdt v43 installed.
OLDDEC: Fixes the "corrupt image problem" when using ibrowse in conjuction
with the p96 pictdt (a few people have the same problem with the cgfx version
but I can't confirm it). This option switches the datatype into V42MODE for
images with <= 8bits (behaviour of v44.13 and earlier). Starting version
43.40 of picture.datatype (p96) this problem is fixed. To gain maximum speed
OLDDEC should be turned on as it avoids some redundant planar<->chunky
conversion for images with 1..7 planes. Default for this option is YES. Use
OLDDEC=NO to switch it off.
CHIPBM: Tells the datatype to allocate temporary bitmaps in chipmem instead
of fastram. If you don't have a patch such as NewWPA8 installed (replaces
WritePixelArray8 of graphics.library by a faster one), setting this
option will avoid that garbage is produced when 24bit images are converted
to ham (also true for ham8 to ham6 conversion). There's no other reason to
switch on this option as it would slow down the conversion routines. This
option always changes the global setting! Starting 44.18 this option is
turned off by default when cgfx or p96 is installed, when there's no cgfx
(compatible) api available this option is turned on by default. NOTE: Also
starting 44.18 this option expects either a YES or NO!
KNOWN PROBLEMS
- DOpus Mangellan and 24bit/ham images
According to the docs of DOpus 5.65, DOpus has some problems to
display 24bit images under certain circumstances. This is not a bug
of the datatype! (thanks to Dennis Barret for the error report)
pre 5.65 releases work fine.
- picture.datatype <= v42 (V42MODE) and 24bit images
If you get garbage instead of a 24bit image that was converted to ham,
you can either switch on the CHIPBM option of the datatype or install
a WritePixelArray8 patch such as NewWPA8 (faster solution).
- ilbmdt 44.14+, ibrowse and p96 pictdt <= v43.39
For unknown reasons the navigation buttons of ibrowse are corrupt when
using it in conjunction with the p96 pictdt. The OLDDEC option worksaround
this problem by switching the datatype into V42MODE for <= 8bit images.
HISTORY
44.0 1st upload: first public release
44.1 a few optimiziations, skips masking planes now,
added KNOWN PROBLEMS section to the doc
44.2 fixed a bug which made some programs (ex. MUI)
to display garbage when using a 24bit/ham image on
a screen deeper than 8bit.
44.3 bug fix: enforcer hit when library was expunged
(thanks to Magnus Holmgren for the error report)
44.4 bug fix: iff24 images with masking weren't correctly
decoded (thanks to Steve Cutting for the error report)
44.5 cleaned-up the code a little bit, special version which
supports planar to chunky hardware
44.6 removed p2c version (slower than normal one). supports
b/w and greyscale pictures now (no cmap, mainly used by
PageStream). Didn't set transparent color for images
with transparent masking (hope that is fixed now).
44.7 doesn't require cgfx/p96 and pictdtv43 any longer
44.8 aspect ratio wasn't set
44.9 works with ProBench now
44.10 compiled with gcc (made some internal changes necessary),
datatype is now some bytes smaller and probably a bit faster
when decoding <= 8bit images.
44.11 broke decoding routine for images with masking last time.
Thanks to Jens Rosenboom for the bugreport.
44.12 broke something again :( This time the library function
table. Stupid me! Thanks to Gerald Schnabel for the bug
report.
44.13 by request of a single user, you can turn off the HAM to 24bit
conversion by setting an enviroment variable.
44.14 changed home directory of prefs variable. 24bit images will be
converted to HAM when pictdt v43 isn't available (or when V42MODE
switch is on). enhanced decoder to work in mode v43 even for <= 8bit
images (which also fixes the "transparent color problem").
added ham8 to ham6 conversion for ocs/ecs machines. supports NAME,
ANNO, Copyright, AUTH and FVER chunks, now. optimized and bugfixed
library module.
44.15 fixed a harmless (?) bug in the iff scan routine. color palette for ham8
to ham6 conversion wasn't set up correctly due to a compiler bug. added
a new switch (CHIPBM) which tells the datatype to allocated temporary
bitmaps in chipmem instead of fastram (see docs/usage for more about it).
added OLDDEC option to workaround the "p96 pictdt / ibrowse" problem.
44.16 improved planar to chunky routine a bit. removed WriteChunkyPixels()
support for v40+ systems (slower than WritePixeLine8() without c2p
hardware) <Olaf Barthel>. v43.40 of picture.datatype (p96) fixes the
corrupt image problem, added a note concerning this to the doc.
OLDDEC option is now a (/T) toggle and turned on by default.
44.17 wrong displaymode for ehb pictures were chosen on rtg systems <Ulrich
Falke>.
44.18 CHIPBM option is a toggle (/T) now and turned on by default when
there's no cgfx (compatible) api available. recompiled using egcs 1.1.
44.19 accidently removed a line of code in an earlier release, a ham modeid
was returned in v43mode although the datatype converted the ham source
to truecolor. in v42mode the colorpalette for truecolor images converted
to ham wasn't setup correctly <Stephen Brookes>.
44.20 fixed very bad bug in LibExpunge code (references to freed memory), this
bug possibly never caused any problems because of the Forbid() state of
LibExpunge <Thomas Richter>.
SPECIAL THANKS GO TO ...
Matthias Scheler and
Frank Mariak for answering my questions concerning iff-ilbm
and CyberGFX.
Volker Remuss for his suggestions.
Allan Odgaard for the bug report.
Jens Rosenboom for his bug reports.
Gunther Nikl for his help with gcc and CreateHAMLine.c.
Michael Hendren, Alexander Niven-Jenkins, Trevor Daley,
Constantinos Nicolakakis and many, many other guys for reporting the
"p96 pictdt / ibrowse problem".
Olaf Barthel for his help.
And to all other people who send me emails.
AUTHOR
Please send bug reports and ideas to:
Stephan Rupprecht
Apfeldweg 1
D44359 Dortmund
Germany
Send emails to
stephan.rupprecht@gmx.de